package cn.cs.mapper;

import cn.cs.pojo.RepairComplaint;
import cn.cs.pojo.RepairComplaintNode;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface RepairComplaintMapper {

	public RepairComplaint getRepairComplaintById(@Param(value = "id") String id)throws Exception;

	public List<RepairComplaint> getRepairComplaintListByMap(Map<String, Object> param)throws Exception;

	public Integer getRepairComplaintCountByMap(Map<String, Object> param)throws Exception;

	public Integer insertRepairComplaint(RepairComplaint repairComplaint)throws Exception;

	public Integer updateRepairComplaint(RepairComplaint repairComplaint)throws Exception;

	public Integer deleteRepairComplaintById(@Param(value = "id") String id)throws Exception;

	public Map<String, Object> getPersonByCode(@Param(value = "code") String code)throws Exception;

	public Integer insertRepairComplaintNode(RepairComplaintNode repairComplaintNode)throws Exception;

	public List<RepairComplaintNode>	getRepairComplaintNodeListByMap(Map<String, Object> param)throws Exception;

	public Integer getRepairComplaintNodeCountByMap(Map<String, Object> param)throws Exception;

}
